Skip to main content

Header Bar

Type

widget

Summary

A header bar intended for use by mobile apps.

The header bar has a label, which is displayed as its title, along with a set of actions. Each action has a name, which is used to identify it internally, and an icon and label which are displayed (depending on the chosen itemStyle). One of the actions can optionally be displayed to the left of the header bar's title, when the firstItemLeft property is enabled.

The header bar widget provides two theme modes, one for Android apps and one for iOS apps. By default, it automatically selects the appropriate one depending on which platform it is running on. To temporarily select a non-default different appearance, set the theme property.

The header bar widget works well when paired with the navigation bar widget.

Description

A header bar intended for use by mobile apps.

The header bar has a label, which is displayed as its title, along with a set of actions. Each action has a name, which is used to identify it internally, and an icon and label which are displayed (depending on the chosen itemStyle). One of the actions can optionally be displayed to the left of the header bar's title, when the firstItemLeft property is enabled.

The header bar widget provides two theme modes, one for Android apps and one for iOS apps. By default, it automatically selects the appropriate one depending on which platform it is running on. To temporarily select a non-default different appearance, set the theme property.

The header bar widget works well when paired with the navigation bar widget.

property: firstItemLeft, itemIcons, itemLabels, itemNames, itemStyle, label, theme

Children Properties

Message

NameSummarySyntax
mouseUpSent when the header bar is clickedmouseUp

Property

NameSummarySyntax
foreColorThe text colorget the foreColor of <widget> set the foreColor of <widget> to <pColor>
backColorThe background colorget the backColor of <widget> set the backColor of <widget> to <pColor>
hiliteColorThe color of the actions' icons and textget the hiliteColor of <widget> set the hiliteColor of <widget> to <pColor>
borderColorThe border colorget the borderColor of <widget> set the borderColor of <widget> to <pColor>
showBorderWhether the header bar has a dividing line at the bottomget the showBorder of <widget> set the showBorder of <widget> to {true | false}
opaqueWhether the background of the header bar is filledget the opaque of <widget> set the opaque of <widget> to {true | false}
itemIconsThe icons for actions when not highlighted.get the itemIcons of <widget> set the itemIcons of <widget> to <iconNames>
itemStyleThe display style for header actions.get the itemStyle of <widget> set the itemStyle of <widget> to <actionStyle>
firstItemLeftWhether to display the first action on the leftget the firstItemLeft of <widget> set the firstItemLeft of <widget> to { true | false }
itemNamesThe identifying names for header actions.get the itemNames of <widget> set the itemNames of <widget> to <names>
hilitedItemIconsThe icons for actions when highlighted.get the hilitedItemIcons of <widget> set the hilitedItemIcons of <widget> to <iconNames>
labelThe title displayed by the header bar.get the label of <widget> set the label of <widget> to <title>
itemArrayThe full header action data.get the itemArray of <widget> set the itemArray of <widget> to <array>
showLabelWhether or not to display a titleget the showLabel of <widget> set the showLabel of <widget> to {true | false}
mouseActionThe header action that the mouse pointer is currently over.get the mouseAction of <widget>
themeThe theme to use when drawing the header bar.get the theme of <widget> set the theme of <widget> to <widgetTheme>
itemLabelsThe labels for header actions.get the itemLabels of <widget> set the itemLabels of <widget> to <labels>